# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=dotenv-linter
pkgver=3.2.0
pkgrel=0
pkgdesc="Lightning-fast linter for .env files"
url="https://dotenv-linter.github.io"
arch="all !s390x !ppc64le !riscv64" # rust/rustls
license="MIT"
makedepends="cargo"
source="https://github.com/dotenv-linter/dotenv-linter/archive/refs/tags/v$pkgver/dotenv-linter-$pkgver.tar.gz"

prepare() {
	default_prepare

	cargo fetch --locked
}

build() {
	cargo build --release --frozen
}

check() {
	cargo test --frozen
}

package() {
	install -Dm755 target/release/dotenv-linter -t "$pkgdir"/usr/bin
}

sha512sums="
fb328ee1b7ea9eba3efc6eb76e4a1fb8dda5103c706d8c729ff4a9958ee763ebbbd984b12b59e562135473d0db79fd5d6b793da85925619d82edcb0b8149b682  dotenv-linter-3.2.0.tar.gz
"
